home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 7 / Amiga Format AFCD07 (Dec 1996, Issue 91).iso / serious / shareware / hardware / printing / easy_print / install < prev    next >
Text File  |  1996-09-18  |  6KB  |  178 lines

  1. ;
  2. ; Script di installazione per EasyPrint 2.25 (18.09.96)
  3. ;
  4.  
  5. ; Stringhe
  6.  
  7. (set @default-dest  "")
  8. (set @default-message "")
  9. (set lib-def-dest   "LIBS:")
  10. (set eprint-dest    "SYS:")
  11.  
  12. ; E' un Amiga 3.0?
  13. (if (= @language "italiano")
  14. (
  15.         (if (< (/ (getversion) 65536) 39) (abort "Devi avere il Kickstart 3.0 (o superiore) per usare\nEasyPrint."))
  16.  
  17.         (message
  18.                 (cat      "\n\n\nEasyPrint, script di installazione.\n"
  19.                           "Questa procedura installa EasyPrint sul vostro Amiga.\n\n"
  20.                           "(C) Copyright 1995-1996 Andrea Latina."
  21.                 ))
  22.  
  23.         ; Ask where to copy the library.
  24.  
  25.         (set lib-dest
  26.                 (askdir
  27.                         (prompt  "Dove desideri vengano copiate le librerie (saranno copiate solo se più recenti di quelle già installate)?")
  28.                         (help    "    Se usi una directory per le librerie create da terzi, adesso puoi specificarla.")
  29.                         (default lib-def-dest)
  30.                 )
  31.         )
  32.  
  33.         ; Copy the library.
  34.  
  35.         (copylib
  36.                 (prompt (cat "Copio la reqtools.library in " (tackon lib-dest "reqtools.library")))
  37.                 (help   @copylib-help)
  38.                 (source "libs/reqtools.library")
  39.                 (dest   lib-dest)
  40.                 (confirm)
  41.         )
  42.  
  43.         (copylib
  44.                 (prompt (cat "Copio la iff.library in " (tackon lib-dest "iff.library")))
  45.                 (help   @copylib-help)
  46.                 (source "libs/iff.library")
  47.                 (dest   lib-dest)
  48.                 (confirm)
  49.         )
  50.  
  51.         (set eprint-dest
  52.                 (askdir
  53.                         (prompt  "Dove desideri installare EasyPrint (sarà creato un nuovo cassetto chiamato 'EasyPrint')?")
  54.                         (help    "    Seleziona il cassetto in cui installare EastPrint.")
  55.                         (default eprint-dest)
  56.                 )
  57.         )
  58.  
  59.         (if (NOT (exists (tackon eprint-dest "EasyPrint")))
  60.             (makedir (tackon eprint-dest "EasyPrint")))
  61.  
  62.         (copyfiles
  63.             (prompt "Copio 'EasyPrint' in " eprint-dest "EasyPrint/...")
  64.             (source "EasyPrint/")
  65.             (dest   (tackon eprint-dest "EasyPrint"))
  66.             (all)
  67.         )
  68.  
  69.         (copyfiles
  70.             (prompt "Copio 'EasyPrint' in " eprint-dest "EasyPrint/...")
  71.             (source "EasyPrint.guide")
  72.             (dest   (tackon eprint-dest "EasyPrint"))
  73.         )
  74.  
  75.         (copyfiles
  76.             (prompt "Copio 'EasyPrint' in " eprint-dest "EasyPrint/...")
  77.             (source "EasyPrint_ITA.guide")
  78.             (dest   (tackon eprint-dest "EasyPrint"))
  79.         )
  80.  
  81.         (if (exists ("env:sys/def_drawer.info"))
  82.             (copyfiles
  83.                 (prompt "Copio 'EasyPrint' in " eprint-dest "EasyPrint/...")
  84.                 (source "env:sys/def_drawer.info")
  85.                 (dest   eprint-dest)
  86.                 (newname "EasyPrint.info")
  87.                 (noposition)
  88.                 (nogauge)
  89.             )
  90.         )
  91.         (delete "ENV:EasyPrint.prefs")
  92.         (delete "ENVARC:EasyPrint.prefs")
  93.         (delete (tackon eprint-dest "EasyPrint/EasyPrint.def"))
  94. )
  95. (
  96.         (if (< (/ (getversion) 65536) 39) (abort "EasyPrint need at least OS 3.0"))
  97.  
  98.         (message
  99.                 (cat      "\n\n\nEasyPrint, installation script.\n\n"
  100.                           "This script installs EasyPrint on your Amiga.\n\n"
  101.                           "(C) Copyright 1995-1996 by Andrea Latina\nAll rights reserved."
  102.                 )
  103.         )
  104.  
  105.         ; Ask where to copy the library.
  106.  
  107.         (set lib-dest
  108.                 (askdir
  109.                         (prompt  "Select directory where to install the libraries (copies the libraries using version checking).")
  110.                         (help    "    Copies the libraries using version checking; i.e., it only overwrites an existing library if the new library has a higher version/revision number.")
  111.                         (default lib-def-dest)
  112.                 )
  113.         )
  114.  
  115.         ; Copy the library.
  116.  
  117.         (copylib
  118.                 (prompt (cat "Copying reqtools.library to " lib-dest))
  119.                 (help   @copylib-help)
  120.                 (source "libs/reqtools.library")
  121.                 (dest   lib-dest)
  122.                 (confirm)
  123.         )
  124.  
  125.         (copylib
  126.                 (prompt (cat "Copying iff.library to " lib-dest ))
  127.                 (help   @copylib-help)
  128.                 (source "libs/iff.library")
  129.                 (dest   lib-dest)
  130.                 (confirm)
  131.         )
  132.  
  133.         (set eprint-dest
  134.                 (askdir
  135.                         (prompt  "Select directory where to install EasyPrint (a directory called `EasyPrint` will be created here).")
  136.                         (help    "    If you specify a path, a new directory called `EasyPrint` will be created in it. The program will be copied in this directory.")
  137.                         (default eprint-dest)                                                                                
  138.                 )
  139.         )
  140.  
  141.         (if (NOT (exists (tackon eprint-dest "EasyPrint")))
  142.             (makedir (tackon eprint-dest "EasyPrint")))
  143.  
  144.         (copyfiles
  145.             (prompt "Copying 'EasyPrint' to " eprint-dest "EasyPrint/...")
  146.             (source "EasyPrint/")
  147.             (dest   (tackon eprint-dest "EasyPrint"))
  148.             (all)
  149.         )
  150.  
  151.         (copyfiles
  152.             (prompt "Copying 'EasyPrint' to " eprint-dest "EasyPrint/...")
  153.             (source "EasyPrint.guide")
  154.             (dest   (tackon eprint-dest "EasyPrint"))
  155.         )
  156.  
  157.         (copyfiles
  158.             (prompt "Copying 'EasyPrint' to " eprint-dest "EasyPrint/...")
  159.             (source "EasyPrint_ITA.guide")
  160.             (dest   (tackon eprint-dest "EasyPrint"))
  161.         )
  162.  
  163.         (if (exists ("env:sys/def_drawer.info"))
  164.             (copyfiles
  165.                 (prompt "Copying 'EasyPrint' to " eprint-dest "EasyPrint/...")
  166.                 (source "env:sys/def_drawer.info")
  167.                 (dest   eprint-dest)
  168.                 (newname "EasyPrint.info")
  169.                 (noposition)
  170.                 (nogauge)
  171.             )
  172.         )
  173.         (delete "ENV:EasyPrint.prefs")
  174.         (delete "ENVARC:EasyPrint.prefs")
  175.         (delete (tackon eprint-dest "EasyPrint/EasyPrint.def"))
  176. )
  177. ) ; if
  178.